package com.itmatter.classifier.domain;

/**
 *
 * @author Daniel Fisla, dfisla@itmatter.com, ITMATTER Inc., http://www.itmatter.com, Copyright 2010, LGPLv3
 */
public class ClassifierFeature implements java.io.Serializable {

    private ClassifierFeatureId id;
    private int counts = 0;

    /**
     * 
     */
    public ClassifierFeature() {
    }

    /**
     * 
     * @param id
     */
    public ClassifierFeature(ClassifierFeatureId id) {
        this.id = id;
    }

    /**
     * 
     * @return
     */
    public ClassifierFeatureId getId() {
        return this.id;
    }

    /**
     * 
     * @param id
     */
    public void setId(ClassifierFeatureId id) {
        this.id = id;
    }

    /**
     * 
     * @return
     */
    public int getCounts() {
        return counts;
    }

    /**
     * 
     * @param counts
     */
    public void setCounts(int counts) {
        this.counts = counts;
    }
/*
    public boolean equals(Object other) {
        if ((this == other)) {
            return true;
        }
        if ((other == null)) {
            return false;
        }
        if (!(other instanceof ClassifierFeature)) {
            return false;
        }
        ClassifierFeature castOther = (ClassifierFeature) other;

        return (this.hashCode() == castOther.hashCode());
    }

    public int hashCode() {
        return id.hashCode();
    }
   
    */
}
